package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.vo.AttrRspoVo;
import com.atguigu.gulimall.product.vo.AttrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author tianfengbo
 * @email tianfengbo@gmail.com
 * @date 2021-06-10 16:39:35
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryPage(Map<String, Object> params, Long catelogId,String attrType);

    AttrRspoVo getAttr(Long attrId);

    void updateAttr(AttrVo attr);

    PageUtils getNoRelation(Map<String, Object> params, Long attrgroupId);

    List<Long> getAttrWithSearchByIds(List<Long> attrIds);
}

